CC = gcc

all:
	$(CC) src/pattern/pcre/dftables.c -o src/pattern/pcre/dftables
	./src/pattern/pcre/dftables src/pattern/pcre/pcre_chartables.c
	$(CC) -Wno-trigraphs src/pattern/PerfPat.c src/pattern/51Degrees.mobi.c src/pattern/pcre/pcre_chartables.c src/pattern/pcre/pcre_compile.c src/pattern/pcre/pcre_config.c src/pattern/pcre/pcre_dfa_exec.c src/pattern/pcre/pcre_exec.c src/pattern/pcre/pcre_fullinfo.c src/pattern/pcre/pcre_get.c src/pattern/pcre/pcre_globals.c src/pattern/pcre/pcre_info.c src/pattern/pcre/pcre_maketables.c src/pattern/pcre/pcre_newline.c src/pattern/pcre/pcre_ord2utf8.c src/pattern/pcre/pcre_refcount.c src/pattern/pcre/pcre_study.c src/pattern/pcre/pcre_tables.c src/pattern/pcre/pcre_try_flipped.c src/pattern/pcre/pcre_ucp_searchfuncs.c src/pattern/pcre/pcre_valid_utf8.c src/pattern/pcre/pcre_version.c src/pattern/pcre/pcre_xclass.c src/pattern/pcre/pcreposix.c src/pattern/snprintf/snprintf.c -o PerfPat
	$(CC) -Wno-trigraphs src/pattern/ProcPat.c src/pattern/51Degrees.mobi.c src/pattern/pcre/pcre_chartables.c src/pattern/pcre/pcre_compile.c src/pattern/pcre/pcre_config.c src/pattern/pcre/pcre_dfa_exec.c src/pattern/pcre/pcre_exec.c src/pattern/pcre/pcre_fullinfo.c src/pattern/pcre/pcre_get.c src/pattern/pcre/pcre_globals.c src/pattern/pcre/pcre_info.c src/pattern/pcre/pcre_maketables.c src/pattern/pcre/pcre_newline.c src/pattern/pcre/pcre_ord2utf8.c src/pattern/pcre/pcre_refcount.c src/pattern/pcre/pcre_study.c src/pattern/pcre/pcre_tables.c src/pattern/pcre/pcre_try_flipped.c src/pattern/pcre/pcre_ucp_searchfuncs.c src/pattern/pcre/pcre_valid_utf8.c src/pattern/pcre/pcre_version.c src/pattern/pcre/pcre_xclass.c src/pattern/pcre/pcreposix.c src/pattern/snprintf/snprintf.c -o ProcPat
	$(CC) src/trie/PerfTrie.c src/trie/51Degrees.mobi.c src/trie/snprintf/snprintf.c -o PerfTrie
	$(CC) src/trie/ProcTrie.c src/trie/51Degrees.mobi.c src/trie/snprintf/snprintf.c -o ProcTrie
